import { ElMessage } from "element-plus";

const toolElement = {
  /**
   * 消息提示
   * @param {消息内容} message
   * @param {消息类型} type
   */
  msg(message = "操作成功", type = "success") {
    ElMessage({ message, type, showClose: true, offset: 50, grouping: true });
  },
};

export default toolElement;
